{% extends "base.html" %} {% load static %} {% block content %}

{{ attempt.quiz.title }}

Question {{ question_index|add:"1" }} of {{ total_questions }}
{% if remaining_seconds %}
⏳ Time Remaining: {{ remaining_seconds }} seconds
{% endif %}
{{ question.text }}
{% csrf_token %} {% for choice in choices %}
{% endfor %}
{% if question_index > 0 %} ← Previous {% else %} {% endif %}
{% with percent=question_index|add:"1"|divisibleby:total_questions %}
{% endwith %}
{% if remaining_seconds %} {% endif %} {% endblock %}